Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: 💡 Bundle parameter shouldn't be a negation #34

Merged
merged 4 commits into from
Sep 19, 2024

Conversation

heldrida
Copy link
Member

@heldrida heldrida commented Sep 19, 2024

Why?

Most parameters take a value. The bundle parameter is optional but shouldn't be a negation. It's confusing and counter-intuitive. Rather, have the bundle parameter that defaults to true, e.g. defaults to bundling. If the user wants to prevent bundling, it'd have to set the bundle parameter to false, which is a similar flow as for other parameters, e.g. name.

⚠️ Related to fleek-platform/website#230

How?

  • Replace the term in the types
  • Replace the term in the command generator
  • Create localized text

Tickets?

Contribution checklist?

  • The commit messages are detailed
  • The build command runs locally
  • Assets or static content are linked and stored in the project
  • You have manually tested
  • You have provided tests

Security checklist?

  • Sensitive data has been identified and is being protected properly
  • Injection has been prevented (parameterized queries, no eval or system calls)

Preview?

Bundle is Enabled by default

Screenshot 2024-09-19 at 14 13 44

Bundle is Disabled if user sets it as false

Screenshot 2024-09-19 at 14 14 05

Copy link

changeset-bot bot commented Sep 19, 2024

🦋 Changeset detected

Latest commit: d709fac

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@fleek-platform/cli Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

gabrielmpinto
gabrielmpinto previously approved these changes Sep 19, 2024
@heldrida heldrida merged commit 2976cd6 into develop Sep 19, 2024
3 checks passed
heldrida added a commit to fleek-platform/website that referenced this pull request Sep 19, 2024
## Why?

The bundle parameter has changed in
fleek-platform/cli#34, thus the documentation
has to reflect the changes.

⚠️ Related to fleek-platform/cli#34

## How?

- Update guides

## Tickets?

-
[PLAT-1273](https://linear.app/fleekxyz/issue/PLAT-1273/the-bundle-parameter-is-not-intuitive-due-to-negation-eg-nobundle)

## Contribution checklist?

- [x] The commit messages are detailed
- [x] The `build` command runs locally
- [ ] Assets or static content are linked and stored in the project
- [ ] Document filename is named after the slug
- [ ] You've reviewed spelling using a grammar checker
- [ ] For documentation, guides or references, you've tested the
commands and steps
- [ ] You've done enough research before writing

## Security checklist?

- [ ] Sensitive data has been identified and is being protected properly
- [ ] Injection has been prevented (parameterized queries, no eval or
system calls)
- [ ] The Components are escaping output (to prevent XSS)

## References?

Optionally, provide references such as links

## Preview?

Optionally, provide the preview url here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants